/*
 * @Descripttion:
 * @version:
 * @Date: 2021-04-20 11:06:21
 * @LastEditors: huzhushan@126.com
 * @LastEditTime: 2021-04-21 09:36:55
 * @Author: huzhushan@126.com
 * @HomePage: https://huzhushan.gitee.io/vue3-element-admin
 * @Github: https://github.com/huzhushan/vue3-element-admin
 * @Donate: https://huzhushan.gitee.io/vue3-element-admin/donate/
 */
import request from '@/utils/request'

const base_api='/admin/system/sysUser'

// 登录接口
export const GetSysUserList = (pageNum,pageSize,queryDto) => {
  return request({
    url: `${base_api}/findByPage/${pageNum}/${pageSize}`,
    method: 'get',
    params: queryDto ,
  })
}

export const SaveSysUser = (sysUser) => {
        return request({
          url: `${base_api}/saveSysUser`,
          method: 'post',
          data: sysUser ,
        })
      }


  export const UpdateSysUser = (sysUser) => {
        return request({
          url: `${base_api}/updateSysUser`,
          method: 'put',
          data: sysUser ,
        })
      }

      export const DeleteSysUser = (userId) => {
        return request({
          url: `${base_api}/deletById/${userId}`,
          method: 'delete'
        
        })
      }


      export const InsertSysUserRole = (assginRoleDto) => {
        return request({
          url: `${base_api}/doAssign`,
          method: 'post',
          data: assginRoleDto
        
        })
      }